/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package supermercado;

import GUI.Principal;
import GUI.Sobre;

/**
 *
 * @author jean
 */
public class Main {

    public static void main(String[] args) {

        setaTema();

        //Principal abre = new Principal();
        //abre.setLocationRelativeTo(null);
        //abre.setVisible(true);

        Sobre sobre = new Sobre();
        sobre.setLocationRelativeTo(null);
        sobre.setTitle("Simulador de Supermercados");
        sobre.setVisible(true);
    }

    private static void setaTema() {
        /*
         * Set the Nimbus look and feel
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
    }
}